package com.nuorui.module.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.nuorui.common.core.domain.ResponseDTO;
import com.nuorui.module.system.domain.entity.DepartmentEntity;
import com.nuorui.module.system.domain.form.DepartmentForm;

/**
 * 部门表
 *
 * @author
 * @date 2021-12-14 15:01:27
 */
public interface DepartmentService extends IService<DepartmentEntity> {

    /**
     * 获取部门列表
     *
     * @return
     */
    ResponseDTO getDepartmentList();

    /**
     * 获取部门树形列表
     *
     * @return
     */
    ResponseDTO getDepartmentTree();

    /**
     * 新增部门
     *
     * @param departmentForm
     * @return
     */
    ResponseDTO saveDepartment(DepartmentForm departmentForm);

    /**
     * 更新部门
     *
     * @param departmentId
     * @param departmentForm
     * @return
     */
    ResponseDTO<String> updateDepartment(Long departmentId, DepartmentForm departmentForm);

    /**
     * 删除部门
     *
     * @param departmentId
     * @return
     */
    ResponseDTO<String> deleteDepartment(Long departmentId);
}
